<?php echo $this->Html->script('signup', array('inline' => false));?>
<h1 id="mainTitle" class="login">新規会員登録</h1>
<div class="fullWidth clearfix">
<!-- .halfColumn -->
<div class="halfColumn">
	<h2 class="title">Facebookアカウントで登録する</h2>
	<?php echo $this->Html->link(
			$this->Html->image('btn_fbsignup_off.png', array('border' => 0, 'alt' => '')),
			$facebookLoginUrl, array('class' => 'facebookLogin', 'escape' => FALSE)
	); ?>
					</div>
<!-- /.halfColumn -->
<!-- .halfColumn -->
<div class="halfColumn last">
	<h2 class="title">メールアドレスでログインする</h2>
	<?php echo $this->Form->create('User',array('action' => 'signup', 'type' => 'post', 'onSubmit' => 'return validateSignUpForm();')); ?>
		<ul class="signupForm">
			<li>
				<label for="LastName">姓</label>
				<?php echo $this->Form->text('SignupForm.last_name',array('label' => FALSE, 'div' => FALSE, 'class' => 'text')); ?>
				<?php echo $form->error('SignupForm.last_name', null, array('class'=>'error-message text-error')); ?>
			</li>
			<li>
				<label for="FirstName">名</label>
				<?php echo $this->Form->text('SignupForm.first_name',array('label' => FALSE, 'div' => FALSE, 'class' => 'text')); ?>
				<?php echo $form->error('SignupForm.first_name', null, array('class'=>'error-message text-error')); ?>
			</li>
			<li>
				<label for="Email">メールアドレス</label>
				<?php echo $this->Form->text('SignupForm.email',array('label' => FALSE, 'div' => FALSE, 'id' => 'Email', 'class' => 'text')); ?>
				<?php echo $form->error('SignupForm.email', null, array('class'=>'error-message text-error')); ?>
			</li>
			<li>
				<label for="Password">パスワード</label>
				<?php echo $this->Form->password('SignupForm.password',array('label' => FALSE, 'div' => FALSE, 'id' => 'Password', 'class' => 'text')) ?>
				<?php echo $form->error('SignupForm.password', null, array('class'=>'error-message text-error')); ?>
			</li>
			<li class="tos">
				<?php echo $this->Form->checkbox('SignupForm.term', array('label' => FALSE, 'div' => FALSE, 'id' => 'tos')); ?>
				<?php echo $this->Html->link('利用規約に同意して登録する', array('controller' => 'pages', 'action' => 'display', 'terms'), array('target' => '_blank'));?>
				<div class="error-message" id="term-error"><?php echo $form->error('SignupForm.term', null, array('class'=>'error-message text-error', 'wrap' => FALSE)); ?></div>
			</li>
		</ul>
		<?php echo $this->Form->submit('btn_mailsignup_off.png', array('div' => FALSE, 'class' => 'register', 'id' => 'bnt_signup')); ?>
	<?php echo $this->Form->end(); ?>
</div>
<!-- /.halfColumn -->
</div>
<?php echo $this->element('top_link'); ?>